home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 1835 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  812 b 

  1. Path: oxy.rust.net!usenet
  2. From: ebennett@rust.net
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Pound defines
  5. Date: Wed, 17 Jan 1996 05:58:14 GMT
  6. Organization: Rust Net - High Speed Internet in Detroit  810-642-2276
  7. Message-ID: <4dhoil$ioj@oxy.rust.net>
  8. References: <4dgquf$fuq@bmerhc5e.bnr.ca>
  9. NNTP-Posting-Host: liv-10.rust.net
  10. X-Newsreader: Forte Free Agent 1.0.82
  11.  
  12. studnt1@bmerhe78.bnr.ca (Jean Giblin ) wrote:
  13.  
  14. >hello everyone:
  15.  
  16. >    I was wondering if anybody out there knows about a C command that prints the
  17. >the name of the define when given the number. Example:
  18.  
  19. > #define MAX 20
  20.  
  21. >when given 20 it will return max.
  22.  
  23. Sorry, ain't no such animal.  A symbol defined via #define is only
  24. seen by the compiler. By the time you get down to executable code, the
  25. string MAX does not exist anywhere that I know of.
  26.  
  27. Earl
  28.  
  29.  
  30.